<!--  -->
<template>
  <div class="content">
    <el-form :model="active" ref="activeForm" label-width="100px" class="demo-ruleForm">
      <div class="left">
        <div class="user-password">
          <el-form-item label="User" prop="user">
            <el-input v-model="active.name" style="width:200px"></el-input>
          </el-form-item>
          <el-form-item label="Password" prop="password">
            <el-input v-model="active.password" style="width:200px"></el-input>
          </el-form-item>
        </div>
        <el-form-item label="Hlrsn" prop="hlrsn">
          <el-input v-model="active.hlrsn" style="width:200px"></el-input>
        </el-form-item>
        <el-form-item label="IMSI" prop="imsi">
          <el-input v-model="active.imsi" style="width:200px"></el-input><span style="margin:10px">-</span>
          <el-input v-model="active.imsi" style="width:200px"></el-input>
        </el-form-item>
        <el-form-item label="ISDN" prop="isdn">
          <el-input v-model="active.isdn" style="width:200px"></el-input><span style="margin:10px">-</span>
          <el-input v-model="active.isdn" style="width:200px"></el-input>
        </el-form-item>
      </div>
      <div class="right">
        <el-form-item label="业务模型" v-for="(item,i) in active.work" :key="i">
          <el-input
            style="width:400px;display:block;"
            type="textarea"
            :autosize="{ minRows: 10}"
            placeholder="请输入内容"
            v-model="item.value"
          ></el-input>
        </el-form-item>
      </div>
    </el-form>
    <div class="bottom">
      <el-button type="primary" @click="send()">发送</el-button>
      <el-button type="success">取消</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  props: ["active"],
  data() {
    return {};
  },
  components: {},
  computed: {},
  beforeMount() {},
  mounted() {},
  methods: {
    send() {
      this.$emit("send", this.active);
    }
  },
  watch: {}
};
</script>

<style  scoped>
.box-card {
  margin: 10px;
}
.user-password {
  display: flex;
}
.bottom {
  width: 100%;
  display: flex;
  justify-content: center;
}
.result {
  font-size: 15px;
}
.demo-ruleForm {
  display: flex;
  justify-content: space-between;
  width: 80%;
}
.textarea {
  display: flex;
  font-size: 20px;
  text-align: center;
  align-items: center;
}
</style>